/**
 * 
 */
package entity;

import java.math.BigDecimal;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * @author Hung
 *
 */
@DatabaseTable
public class Report {
	
	@DatabaseField(generatedId=true)
	private int id;
	
	@DatabaseField
	private int year;
	
	@DatabaseField
	private int month;
	
	@DatabaseField
	private int date;
	
	@DatabaseField
	private BigDecimal income;
	
	@DatabaseField
	private BigDecimal outcome;
	
	@DatabaseField(canBeNull=false, foreign=true, defaultValue="1")
	private Account account;
	
	Report() {
		
	}
	
	public Report(int year, int month, int date, BigDecimal income, BigDecimal outcome, Account account) {
		this.year = year;
		this.month = month;
		this.date = date;
		this.income = income;
		this.outcome = outcome;
		this.account = account;
	}
	
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public int getId() {
		return id;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public BigDecimal getIncome() {
		return income;
	}
	public void setIncome(BigDecimal income) {
		this.income = income;
	}
	public BigDecimal getOutcome() {
		return outcome;
	}
	public void setOutcome(BigDecimal outcome) {
		this.outcome = outcome;
	}
	public int getDate() {
		return date;
	}
	public void setDate(int date) {
		this.date = date;
	}
}
